package day06.homework.demo1;

public class Rect extends Shape{
    private int len;

    private int width;

    public Rect(){
    }

    public Rect(int len,int width){
        this.len = len;
        this.width = width;
    }

    @Override
    public double area(){
        return len*width;
    }

    @Override
    public double girth(){
        return 2*(len+width);
    }
}
